package com.patterns.factory.factorymethod;

/**
 * 方法工厂模式
 * @author huangke
 *
 */
public class Test {
	public static void main(String[] args) {
		People tom = new TomPeopleFactory().createPeople();
		tom.say();
		People jerry = new JerryPeopleFactory().createPeople();
		jerry.say();
	}
}
